﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<SLIC.Models.Admin.SLICLogEntry>>" %>
<%@ Import Namespace="MvcContrib.UI.Pager" %>
<%@ Import Namespace="MvcContrib.Pagination" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Report
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Report</h2>

    <%
        /// <summary>
        /// 
        ///  <title>SLIC</title>
        ///  <description>Reports page for View Log Report </description>
        ///  <copyRight>Copyright (c) 2011</copyRight>
        ///  <company>IronOne Technologies (Pvt)Ltd</company>
        ///  <createdOn>2011-08-05</createdOn>
        ///  <author></author>
        ///  <modification>
        ///     <modifiedBy></modifiedBy>
        ///      <modifiedDate></modifiedDate>
        ///     <description></description>
        ///  </modification>
        ///
        /// </summary>                                                                                 
    %>

    <table id="grid">
        <tr>
          <%--  <th></th>
            <th>
                LogId
            </th>--%>
            <th>
                Type
            </th>
            <th>
                Date
            </th>
         <%--   <th>
                Controller
            </th>--%>
            <th>
                Action
            </th>
            <th>
                Action By
            </th>
            <th>
                Parameters
            </th>
        </tr>
          <%bool oddEven = true; %>
    <% foreach (var item in Model) { %>
    
        <tr class="<%= (oddEven = !oddEven) ? "even" : "odd" %>">
          <%--  <td>
                <%: Html.ActionLink("Edit", "Edit", new { /* id=item.PrimaryKey */ }) %> |
                <%: Html.ActionLink("Details", "Details", new { /* id=item.PrimaryKey */ })%> |
                <%: Html.ActionLink("Delete", "Delete", new { /* id=item.PrimaryKey */ })%>
            </td>--%>
           <%-- <td>
                <%: item.LogId %>
            </td>--%>
            <td class="normaltds" >
                <%: item.Type %>
            </td>
            <td class="normaltds" >
                <%: item.Date %>
            </td>
          <%--  <td>
                <%: item.Controller %>
            </td>--%>
            <td class="normaltds" >
                <%: item.Action %>
            </td>
            <td class="normaltds" >
                <%: item.ActionBy %>
            </td>
            <td class="normaltds" >
                <%: item.Params %>
            </td>
        </tr>
    
    <% } %>

    </table>
      <br />   
 <div id="pager">
     <%= Html.Pager((IPagination)(Model as IEnumerable<SLIC.Models.Admin.SLICLogEntry>))%>
    </div>
   <%-- <p>
        <%: Html.ActionLink("Create New", "Create") %>
    </p>--%>

</asp:Content>

